#--------------------------------Classes for Experience Section--------------------------------
class Leadership():
    def __init__(self,id=None,position=None,company=None,duration=None):
        self.id=id
        self.position=position
        self.company=company
        self.duration=duration
        self.level=''
        level1=['director','president','CEO','CTO']
        level2=['manager','lead','leader']
        
        for title in level1:
            if self.position.find(title)<>-1:
                self.level='level1'
                break
        if self.level=='':
            for title in level2:
                if self.position.find(title)<>-1:
                    self.level='level2'
                    break
            self.level='level3'
            
        #print position, self.positionScore
class loyalty():
    def __init__(self,id=None,numOfCompany=0,avgTime=0):
        self.id=id
        self.numOfCompany=numOfCompany
        self.avgTime=avgTime
#--------------------------------Classes for Skill Section--------------------------------
class Skill():
    def __init__(self,id=None,skill=None,isRequired=False,isDesired=False):
        self.id=id
        self.skill=skill
        self.isRequired=isRequired
        self.isDesired=isDesired

#--------------------------------Classes for Education Section--------------------------------
class Education():
    def __init__(self,id=None,degree=None,degreeScore=0,major=None,gradTime=None,school=None):
        self.id=id
        self.degree=degree
        self.degreeScore=degreeScore
        self.major=major
        self.gradTime=gradTime
        self.school=school